<?php
$user = "root";
$pass = "c218m571y";
$host = "127.0.0.1";
$port = "22";
$cmd = "whoami > /root/html/test/1;touch /root/html/test/2";
$connection = ssh2_connect($host,$port);
ssh2_auth_password($connection,$user,$pass);
ssh2_exec($connection,$cmd);
?>